package com.ikun.hosscheduling.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ikun.common.entity.Scheduling;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface SchedulingMapper extends BaseMapper<Scheduling> {

    /**
     * 按照日期查找当天余号
     */
    List<Scheduling> findByDate(LocalDate date);

    //做单个医生排班显示+个人信息显示+余号

    /**
     * 通过医生id和当天日期，拿到这个医生7天的排班
     */
    List<Scheduling> findByDocker(Long dockerId, LocalDate date, Long positionId);

}




